package com.chaoyi.controller;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class IndexController {
	
	@RequestMapping("/index")
	public ModelAndView index(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		ModelAndView mod = new ModelAndView("index_iframe");
		return mod;
	}
	
	@RequestMapping("/welcome")
	public ModelAndView dashboard(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		ModelAndView mod = new ModelAndView("welcome");
		return mod;
	}

}
